package com.example.bookmanager.ResponseDemo;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ErrorDemo {
    @ExceptionHandler
    public Object handleException(Exception e) {
        e.printStackTrace();
        return e;
    }
}
